package weifei.live.simulation.entity;


import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import org.springframework.stereotype.Repository;

@Data
@EqualsAndHashCode(callSuper = true)
@TableName("user_friend")
@Repository
public class UserFriend extends Model<UserFriend>
{
    @Getter
    public enum Column
    {
        ID("id"),
        UserID("user_id"),
        FriendID("friend_id");

        final String name;
        Column(String name) { this.name = name; }
    }


    @TableId
    private Integer id;
    private Integer userId;
    private Integer friendId;


    /** 做数据库修改用 */
    public UserFriend() {}
    public UserFriend(int userId, int friendId)
    {
        this.userId = userId;
        this.friendId = friendId;
    }
}


